Skip to main content

Avatar

Luke van Zyl·Updated April 6, 2026

Overview

Avatars represent a person, user, or entity in the interface. They help users quickly identify context or ownership at a glance.

Sandbox

Specs

Anatomy

  1. Container — The circular surface that holds the avatar content.
  2. Image — A photo of the person or entity, displayed when available.
  3. Initials fallback — Two-letter initials shown when no image is present.
  4. Icon fallback — A generic person icon used when no image or initials are available.

Variants

User avatar

A perfect circle used to represent a person — a staff member, clinician, or logged-in user. The circular shape is a conventional signal for a human identity. Use this anywhere the subject is a person.

Patient avatar

A rounded square used to represent an animal patient. The shape distinction separates patients from people at a glance, which matters in screens where both types of identity appear together. Used in places like the communication log sidebar when scheduling or viewing appointments.

Usage

Avatars appear where the interface needs to communicate identity or ownership quickly.

  • In the primary sidebar, the avatar sits at the bottom and belongs to the logged-in user. Clicking it opens a flyout with profile settings and account actions.
  • In patient or entity cards, avatars identify the person associated with a record, such as a patient in a communication or activity pane.

Don't use avatars as decorative elements or for non-identity imagery.

image.png

Best Practices

DoDon't
Use avatars for quick visual identification of a person or entityDon't use avatars for decorative or non-identity imagery
Use the defined 1:1 ratio across all sizesDon't introduce arbitrary sizing or spacing
Provide a clear fallback — initials or the generic icon — when no image is availableDon't leave an avatar empty or broken when an image fails to load

Accessibility

  • Provide text alternatives (alt text or aria-label) describing the represented person or entity.

  • Ensure sufficient color contrast between background and any overlaid initials or symbols.

  • Maintain a visible focus indicator for avatars that are interactive (e.g., open a menu).

  • Support keyboard navigation—avatars that trigger menus or actions must be reachable and operable via keyboard.)

  • When showing initials, ensure they are programmatically determinable for assistive tech (e.g., ).

    aria-label="Michael Lund"